JS HTML DOM: CSS styleの取得と変更

Image on button and onclick/onmouseover/onmouseleave function

JS HTML DOM: フォーム検証 Form Validation

フォームにおけるGUIのデータ入力が正しいかJavaScriptで検証を行い、間違い入力に警告を出す。

サンホテル
予約フォーム

JS Browser BOM: Window Location Object and Screen Object

The window.location object can be used to get the current page address(URL) and to redirect the browser to a new page.

The window.screen object contains information about the user 's screen.

項目を選んで例題を見てください。

Timing Events

The window object allows execution of code at specified time intervals.These time intervals are called timing events.

    The two key methods to use with JavaScript are:
  1. setTimeout(function, milliseconds): Executes a function, after waiting a specified number of milliseconds.
  2. setInterval(function, milliseconds): Same as setTimeout(), but repeats the execution of the function continuously.

The setTimeout() and setInterval() are both methods of the HTML DOM Window object.

?秒以内に挨拶と写真を示す